<!doctype html>
<html>
<head>
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../css/common/weui.css" />
    <link rel="stylesheet" href="../css/common/weuix.css" />
    <link rel="stylesheet" href="../css/common/common.css" />
    <script src="../js/common/utils/zepto.min.js"></script>
    <script src="../js/common/utils/zepto.weui.js"></script>
    <script src="../js/common/common.js"></script>
    <script src="../js/common/utils/qrcode.js"></script>
	<script src="../js/common/utils/template-web.js"></script>
    <script src="../js/common/utils/JsBarcode.all.min.js" type="text/javascript"></script>
	<script src="../js/shop_order_details.js"></script>
</head>
<body ontouchstart style="background-color: #ddd;">
    <!-- 页面头部 -->
    <div class="details-header-container header-container">
    	<div class="weui-flex">
    	    <div class="weui-flex__item">
    	        <div class="placeholder">
    	            <span class="icon icon-109" style="color:#FFF; margin:0px;" onclick="actPageGo(-1)"></span>
    	        </div>
    	    </div>
    	    <div class="weui-flex__item"><div class="placeholder" style="text-align:right;color:#FFF;"></div></div>
    	</div> 
    </div>
	
	<!-- 页面内容 -->
	<div class="details-body-container body-container">
		<div id="shop_order_details">
			
		</div>
		
		<div id="shop_evaluation_details">
			
		</div>
	</div>
	
	<!-- 页面底部 -->
	<div class="footer-container">
		<div id="footer_menu"></div>
	</div>
	
	<script id="shopOrderDetails" type="text/html">
		{{each list as value index}}
			<div class="weui-cells" style="margin-top: 8px;">
				<div class="weui-cell">
					<div class="weui-cell__bd">
						<p style="font-size: 15px;" id="p_status">
						{{value.indent_state}}
						</p>
					</div>
				</div>
			</div>
			<div id="div_dd_info">
				<div class="weui-cells" style="margin-top: 8px;">
					<div class="weui-cell">
						<div class="weui-cell__hd" style="position: relative; margin-right: 10px;">
							<img src="../images/timg.jpg" alt="患者头像" style="width: 50px;
								display: block" id="img_user_head" />
						</div>
						<div class="weui-cell__bd">
							<p id="p_user_name">
								{{value.patient_name === "" ? "李景" : value.patient_name}}</p>
							<p style="font-size: 13px; color: #888888;" id="p_user_mark">
								证件号码({{value.idno === "" ? "18888888" : value.idno}})</p>
						</div>
					</div>
				</div>
				{{if (value.take_type ==="2")}}
					<div class="weui-cells" style="margin-top:8px;" id="div_shdz">
						<div class="weui-cell">
							<div class="weui-cell__bd">
								<p style="font-size: 12px;" id="p_pat_name">收货人: {{value.pat_name}}</p>
								<p style="font-size: 12px;" id="p_pat_address">收货人地址: {{value.address_name}}{{value.address_detl}}</p>
							</div>
						</div>
					</div>
					{{if (value.indent_state ==="待收货")}}
						<div class="weui-cells" style="margin-top: 8px;" id="div_kd_info">
							<div class="weui-cell">
								<div class="weui-cell__bd"  id="div_kd_info_msg">
									<p style="font-size: 12px;">
										您的订单已由第三方卖家发货完成</p>
									<p style="font-size: 12px;">
										承运快递为{{value.logistics_name === undefined ? "顺丰快递" : value.logistics_name}}
									</p>
									<p style="font-size: 12px;">
										运单号：{{value.logistics_no  === undefined ? "123456789" : value.logistics_no}}
										<input class="courier-text" value={{value.logistics_no}} type="hidden" />
										<span style="color: Blue;" class="courier-btn">[复制]</span>
									</p>
									<p style="font-size: 12px;">
										发货时间：{{value.send_time  === undefined ? value.create_time : value.logistics_name}}</p>
								</div>
							</div>
						</div>
					{{/if}}
				{{/if}}
				<div id="div_dd_dtl">
					<div class="weui-cells" style="margin-top: 8px;">
						<div class="weui-cell">
							<div class="weui-cell__hd" style="position: relative; margin-right: 10px;">
								<img src="../images/yp.jpg" alt="药品" style="width: 80px; display: block" />
							</div>
							<div class="weui-cell__bd">
								<p style="font-size: 15px;">
									{{value.drug_name}}
								</p>
								<p style="font-size: 12px; color: #888888;">
									<span>数量：{{value.charge_amount}} {{value.charge_amount}}</span>&nbsp;<span style="margin-left: 10px:">规格：{{value.drug_specifications}}片</span>
								</p>
								<p style="font-size: 13px; color: #CC0000;">
									￥{{value.indent_total}}
								</p>
							</div>
						</div>
					</div>
				</div>
				<div class="weui-cells" style="margin-top: 8px;">
					<div class="weui-cell">
						<div class="weui-cell__bd" id="div_dd_ls_info">
							<p style="font-size: 12px;">
								订单编号：{{value.indent_no}}
								<input class="uid-text" value={{value.indent_no}} type="hidden" />
								<span style="color: Blue;" class="uid-btn">[复制]</span>
							</p>
							<p style="font-size: 12px;">
								下单时间：{{value.create_time}}</p>
							<p style="font-size: 12px;">
								<br />
							</p>
							{{if (value.pay_status === "0")}}
								<p style="font-size: 12px;">支付状态：未支付</p>
							{{else}}
								<p style="font-size: 12px;">支付状态：已支付</p>
								<p style="font-size: 12px;">
									支付时间：{{value.create_time}}</p>
								<p style="font-size: 12px;">
									支付方式：{{value.pay_way}}</p>
								<p style="font-size: 12px;">
									<br />
								</p>
							{{/if}}
							<p style="font-size: 12px;">
								取药方式：{{value.take_type == "1" ? "上门自取" : "快递派送"}}
							</p>
						</div>
					</div>
				</div>
				<div class="weui-cells" style="margin-top: 8px;">
					<div class="weui-cell">
						<div class="weui-cell__bd">
							<p style="font-size: 13px;">
								药品金额</p>
						</div>
						<div class="weui-cell__ft" style="font-size: 13px;" id="div_sum_price">
							￥{{value.charge_total }}</div>
					</div>
					{{if (value.indent_state ==="待收货")}}
						<div class="weui-cell" id="div_kd_yf">
							<div class="weui-cell__bd">
								<p style="font-size: 13px;">
									运费</p>
							</div>
							<div class="weui-cell__ft" style="font-size: 13px;" id="div_yf_price">
								￥{{value.logistics_cost === undefined ? "12" : value.logistics_cost}}</div>
						</div>
					{{/if}}
				</div>
				{{if (value.indent_state !=="已完成" )}}
					<div class="weui-cells" style="margin: 8px 3px;">
						<div class="weui-cells" id="div_EvaluationList">
							<a href="javascript:;" class="weui-btn weui-btn_primary medicine-btn" data-state={{value.indent_state}} data-Iid={{value.indent_no}} data-type={{value.take_type}}>
								{{if (value.take_type === "2" && value.indent_state ==="待发货")}}
									去发货
								{{else if (value.take_type === "1" && value.indent_state ==="待发货" || value.indent_state ==="待配药")}}
									去完成取药
								{{/if}}
							</a>
						</div>
					</div>
				{{/if}}
			</div>
		{{/each}}
	</script>
	
	<!-- 订单评价 -->
	<script id="shopEvaluationDetails" type="text/html">
		<div class="weui-cells" id="div_EvaluationList">
			<div class="weui-cell weui-cell_access">
				<div class="weui-cell__bd" style="font-size: 14px; font-weight: bold;">
					用户评价</div>
			</div>
			<div class="weui-cell" style="margin-top: -10px;" id="service">
				<div class="weui-cell__bd">
					<div class="page-bd-15">
						<span style="font-size: 14px;">服务态度</span> <span class="weui-rater fwtd"><a data-num="1"
							class="on" style="font-size: 20px;"><span>★</span> </a><a data-num="2" style="font-size: 20px;">
								<span>★</span> </a><a data-num="3" style="font-size: 20px;"><span>★</span> </a>
							<a data-num="4" style="font-size: 20px;"><span>★</span> </a><a data-num="5" style="font-size: 20px;">
								<span>★</span> </a></span><span id='fwtd_fen' class="weui_cells_title"></span>
					</div>
				</div>
			</div>
			<div class="weui-cell" style="margin-top: -10px;" id="courier">
				<div class="weui-cell__bd">
					<div class="page-bd-15">
						<span style="font-size: 14px;">送货服务</span> <span class="weui-rater shfw"><a data-num="1"
							class="on" style="font-size: 20px;"><span>★</span> </a><a data-num="2" style="font-size: 20px;">
								<span>★</span> </a><a data-num="3" style="font-size: 20px;"><span>★</span> </a>
							<a data-num="4" style="font-size: 20px;"><span>★</span> </a><a data-num="5" style="font-size: 20px;">
							<span>★</span> </a></span><span id='shfw_fen' class="weui_cells_title">
						</span>
					</div>
				</div>
			</div>
		</div>
	</script>
	
	<script id="noData" type="text/html">
		<div class="weui-msgbox" style="opacity: 1; height: 100px; border-top: #F3F3F3 1px solid;" id="s3">
		    <p>
		        <i class="weui-icon-info-circle"></i>暂无数据
		    </p>
		</div>
	</script>
</body>
</html>
<script type="text/javascript">
  
</script>
